GXGetTrayName
You can use theGXGetTrayName
function to retrieve the name of a specified paper tray on the printer.
OSErr GXGetTrayName (gxTrayIndex whichTray, Str31 trayName);
whichTray
- The number of the tray in which you are interested.
trayName
- On return, the name of the specified tray. This parameter is a string that you have already allocated.
- function result
- An error code. The value
noErr
indicates that the operation was successful.DESCRIPTION
TheGXGetTrayName
function fills in thetrayName
string with the name of the specified tray on the printer. This information is retrieved by calling theGXFetchTaggedData
function.RESULT CODES
gxSegmentLoadFailedErr A required code segment could not be found,
or there was not enough memory to load it.gxPrUserAbortErr The user has canceled printing. SEE ALSO
TheGXFetchTaggedData
function is described in Inside Macintosh: QuickDraw GX Environment and Utilities.You can read about managing paper trays in the section "Managing Paper Trays and Their Paper Types" beginning on page 5-5.
Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help